package day6.Exer;

import java.util.Calendar;

public class Exer7 {
    public static void main(String[] args) {
        Calendar a = Calendar.getInstance();
        a.set(2022, 0 , 0);
        int count = 0;
        while (count < 12) {
            for (int i = 0; i < 7; i++) {
                a.add(Calendar.DATE, 1);
                if(a.get(Calendar.DAY_OF_WEEK)==7){
                    break;
                }
            }
            System.out.println((a.get(Calendar.MONTH)+1)+"月"+a.get(Calendar.DATE)+"日");
            a.set(Calendar.DATE,1);
            a.add(Calendar.MONTH,1);
            count++;
        }
    }

}


